import { defineStore } from 'pinia'

export const useMessageStore = defineStore ('message',{
  state(){
    return{
        message:null,
    }  
  },
  actions:{
    saveMessage(message){
        this.message = message
    },
  },
  getters:{

  },
  persist: {
    enabled: true,
    strategies: [
        {
            key: 'message',
            storage: localStorage,
            paths: ['message'],
        },
    ],
},
})

